if(!MAPS){
    var MAPS = {
        map : null,
        directionsPanel : null,
        directions : null,
        geocoder : null,
        busMarker : null,

        initialize : function() {
            MAPS.map = new GMap2($("map_canvas"));
            MAPS.map.setCenter(new GLatLng(-23.606886,-46.622875), 15);
            MAPS.directionsPanel = $("route");
            MAPS.directions = new GDirections(MAPS.map, MAPS.directionsPanel);
            MAPS.directions.load("from: Rua Dom Pero Leitão, 153, São Paulo to: Rua General Chagas Santos, 1011, São Paulo to: Rua Dom Pero Leitão, 153, São Paulo");

            MAPS.geocoder = new GClientGeocoder();
            MAPS.geocoder.getLatLng("Av. Prof. Abraão de Morais, 300, São Paulo", MAPS.createMarker)
        },

        createMarker : function(point) {
            MAPS.busMarker = new GMarker(point, {'title' : 'Koji'});
            MAPS.map.addOverlay(MAPS.busMarker);
            MAPS.busMarker.show();
        }
    };
}